package com.supplychain.financial.parent.common.util;


/**
 * Created by zhengchuan on 2017/7/14.
 * 一些不相干的工具
 */
public class CustomUtil {

    /**
     * 根据区域获取渠道code的前五位
     *
     * @param quYuName
     * @return
     */
    public static String getChannelCodePreFive(String quYuName) {
        if (quYuName == null) return null;
        String result ;
        switch (quYuName) {
            case "毕节":
                result = "5224";
                break;
            case "安顺":
                result = "5204";
                break;
            case "六盘水":
                result = "5202";
                break;
            case "贵安":
                result = "5205";
                break;
            case "贵阳":
                result = "5201";
                break;
            case "遵义":
                result = "5203";
                break;
            case "铜仁":
                result = "5222";
                break;
            case "黔东南":
                result = "5226";
                break;
//            case "黔南":
//                result = "52220";
//                break;
            default:
                result = null;
        }
        return result;
    }

    public static String getQuDaoId(String quYuName){
        if (quYuName == null) return null;
        String result;
        switch (quYuName) {
            case "5224":
                result = "2";
                break;
            case "5204":
                result = "188";
                break;
            case "5202":
                result = "44";
                break;
            case "5205":
                result = "185";
                break;
            case "5201":
                result = "263";
                break;
            case "5203":
                result = "222";
                break;
            case "5222":
                result = "266";
                break;
            case "5226":
                result = "484";
                break;
            default:
                result = null;
        }
        return result;
    }
}
